<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "en_user_practices".
 *
 * @property int $id 单词ID
 * @property int $uid 用户ID
 * @property int $eid 英语ID
 * @property int $express_correct 表达模式正确次数
 * @property int $express_correct_at 表达模式最后一次答对时间
 * @property int $understand_correct 理解模式正确次数
 * @property int $understand_correct_at 理解模式最后一次答对时间
 * @property int $create_time å‘å¸ƒæ—¶é—´
 * @property int $update_time æ›´æ–°æ—¶é—´
 * @property int $displayorder 显示顺序
 * @property int $status 状态：-2删除，-1草稿，0正常
 */
class UserPractices extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'en_user_practices';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['id', 'uid', 'eid', 'express_correct', 'express_correct_at', 'understand_correct', 'understand_correct_at', 'create_time', 'update_time', 'displayorder', 'status'], 'integer'],
            [['id'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'eid' => 'Eid',
            'express_correct' => '表达模式正确次数',
            'express_correct_at' => '表达模式正确次数',
            'understand_correct' => '理解模式正确次数',
            'understand_correct_at' => '理解模式正确次数',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
            'displayorder' => 'Displayorder',
            'status' => 'Status',
        ];
    }
}
